Skip to content

fix(menu): keep menus under the bar, three quarters tall at most, with a more-below hint (0.47.0) - #30

Merged
nodemode-ai merged 4 commits into
mainfrom
fix/menu-under-bar-0.47.0
Nov 30, 2026
Merged

nodemode-ai merged 4 commits into
mainfrom
fix/menu-under-bar-0.47.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

fix(menu): keep menus under the bar, three quarters tall at most, with a more-below hint (0.47.0)

Summary

  • Bar dropdowns no longer run past the bottom of a short window. Cause: their cap was the room below them with a 160 px minimum, so the minimum pushed them out. Fix: every bar dropdown is capped before it is measured at 75% of the window and never past its bottom (menuCap).
  • Submenus no longer climb over the menu bar. Cause: they clamped their top to the window top. Fix: a submenu takes its root menu's floor and the same cap.
  • Right-click menus, the ribbon's action menus and Home's card menu no longer slide over the bar when opened low in a short window. Cause: they clamped to 4 px from the window top with only the stylesheet's 100vh - 8px cap. Fix: they take the bar's bottom edge as their floor (the window top when the bar is not drawn) and the same cap, and still open at the pointer corner, flipped when there is no room.
  • New: a menu with rows below shows a fade into the glass and a small down pill. Both are in place on the first painted frame, fade out at the last row and come back on scrolling up. A menu that fits shows nothing.
  • Every .fd-menu is now a glass card holding a scrolling .fd-menu-list and a .fd-menu-more pill, using the app's own --glass-bg and --glass-border tokens. Cap and position are set while the panel is hidden, and no rows are rebuilt to measure.

Commits

  • fix(menu): keep bar dropdowns and their submenus under the bar, three quarters tall at most (0.47.0)
  • feat(menu): show a fade and a small pill while a menu has rows below (0.47.0)
  • fix(menu): keep right-click menus under the bar and to the same cap (0.47.0)
  • chore(release): 0.47.0, menus keep under the bar and show when more rows are below (0.47.0)

Version

v0.47.0 (release commit is last), minor bump from 0.46.3. Sites bumped: frontend/package.json, the two own-version fields in frontend/package-lock.json, frontend/src/version.ts, backend/app/init.py, src-tauri/tauri.conf.json (formcompiler's version file), src-tauri/Cargo.toml, formdeck's entry in src-tauri/Cargo.lock, the README badge, and a new 0.47.0 release line in the Flatpak metainfo. The repo has no CHANGELOG.md, so none was added. The committed demos (demo/, demos/present, demos/build) were rebuilt with their own builds and came out byte-identical: they import neither the menu code nor its styles, and do not show the version, so the release commit has no demo changes.

Checks

  • tsc --noEmit (frontend): clean.
  • vite build (frontend): clean.
  • backend tests/test_f4_versions.py: 3 passed.
  • Demo builds (demo/, demos/present, demos/build): built, output byte-identical to the committed files.
  • Browser measurement, Vite build of the frontend in headless Chrome with the CPU slowed 4 times, no backend (its API calls answered Bad Gateway), 11 bar menus at each size. Bar bottom edge 35.5 px.
    • 1280x800: every menu's top was 40 px (also the lowest top seen on every frame while opening); heights 104 to 600 px against a 600 px cap; every bottom inside the window. View, Insert, Format and Arrange are cut off: hint on at open, off at the last row.
    • 1000x480: every top 40 px; heights 104 to 360 px against a 360 px cap; every bottom inside. The 9 cut-off menus had the hint on at open and off at the last row; Extensions and Help fit and showed no hint.
    • Right-click menu on the slide canvas (6 rows, 177 px), opened at (560, 150): top 150 at 1280x800 and 1000x480; at 1000x320 it flipped and stopped at the floor, top 40, bottom 217 of 320. No hint, as it fits.
  • DOM law: verified under throttling (4x CPU), lowest top per frame while opening never above the floor.

Not run: the guide's full 4-size matrix (only 1280x800 and 1000x480 for bar menus, plus 1000x320 for the right-click menu); hint fade timings; End and Home keys; keyboard navigation; submenu placement was not measured in the browser; the file:// demos in a browser; a before measurement on origin/main; the rest of the backend test suite (the change is frontend only); there are no frontend tests; no Tauri, Rust or Python builds; the longest right-click menus (ribbon action menus, Home card menu) were not opened in the browser.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

… quarters tall at most (0.47.0)

A bar dropdown's cap was the room below it with a 160 px minimum, so in a
short window the minimum pushed it past the bottom, and submenus clamped
their top to the window top, over the bar. openAt(x, y, true) now keeps
floor = y and caps the panel at menuCap(y), at most 75% of the window and
never past its bottom, set before measuring. openBeside takes the root's
floor and the same cap. Hover aim is unchanged. HASHOUT_LOG entry 231.
…(0.47.0)

Every .fd-menu is now a glass card holding a scrolling .fd-menu-list and
a .fd-menu-more pill. While rows remain below, the list's bottom rows fade
into the card's glass and the pill shows; at the last row both fade out in
160 ms and come back in 490 ms. A menu opens with the hint already in place
and a menu that fits shows nothing. The bar's PopupMenu, the ribbon's
ActionMenu and Home's card menu all use it. HASHOUT_LOG entry 232.
…0.47.0)

Menus opened at a point clamped their top to 4 px from the window top
with only the stylesheet's 100vh - 8px cap, so a long one opened low in a
short window slid over the menu bar. PopupMenu.openAt, the ribbon's
ActionMenu and Home's card menu now take the bar's bottom edge as their
floor (the window top when the bar is not drawn) and cap at menuCap(floor)
before measuring. They still open at the pointer, flipped when there is no
room, and their submenus keep to the same floor. HASHOUT_LOG entry 233.
…ows are below (0.47.0)

Menu bar dropdowns, their submenus and right-click menus keep under the
menu bar, are at most three quarters of the window tall, and show a fade
and a small pill while rows remain below.

Version sites: frontend/package.json, both package-lock.json fields,
frontend/src/version.ts, backend/app/__init__.py, src-tauri/Cargo.toml,
formdeck's entry in src-tauri/Cargo.lock, src-tauri/tauri.conf.json, the
README badge, and a 0.47.0 line in the Flatpak release list.

The three browser demos (demo/, demos/present, demos/build) were rebuilt
with their own builds and came out byte-identical: they use neither the
menu code nor the menu styles, and do not show the version.

Checked: tests/test_f4_versions.py 3 passed; tsc --noEmit clean; vite
build clean.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 30, 2026 22:26
@nodemode-ai
nodemode-ai merged commit d332149 into main Nov 30, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the fix/menu-under-bar-0.47.0 branch November 30, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant